﻿<CascadingAuthenticationState>
    <BootstrapBlazorRoot OnErrorHandleAsync="GlobalException">
        <Router AppAssembly="@typeof(MainLayout).Assembly" PreferExactMatches="true">
            <Found Context="routeData">
                <PageTitle>GMS.NET Project Template</PageTitle>
                <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
                </AuthorizeRouteView>
            </Found>
            <NotFound>
                <PageTitle>Not found</PageTitle>
                <LayoutView Layout="@typeof(EmptyLayout)">
                    <Forbidden Text="该页面不存在" />
                </LayoutView>
            </NotFound>
        </Router>
    </BootstrapBlazorRoot>
</CascadingAuthenticationState>
